import {GetApi, PostApi} from "@/api/request"

export const getById = new GetApi('/doc/notice/getById', id => ({params: {id}}))

export const getSubById = new GetApi('/doc/notice/getSubById', id => ({params: {id}}))

export const search = new PostApi('/doc/notice/search')

export const exportExcel = new PostApi('/doc/notice/export')

export const add = new PostApi('/doc/notice/add')

export const update = new PostApi('/doc/notice/update')

export const commit = new PostApi('/doc/notice/commit')

export const pass = new PostApi('/doc/notice/pass')

export const del = new GetApi('/doc/notice/del', id => ({params: {id}}))
